package com.lin.forum.model;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;
@Data
@Schema(description ="站内信表")
public class Message {
    @Schema(description ="站内信编号，主键，⾃增")
    private Long id;
    @Schema(description ="发送者，并联⽤⼾编号")
    private Long postUserId;
    @Schema(description ="接收者，并联⽤⼾编号")
    private Long receiveUserId;
    @Schema(description ="内容，⾮空，⻓度255个字符")
    private String content;
    @Schema(description ="状态 0未读 1已读，默认0")
    private Byte state;
    @Schema(description ="是否删除 0否，1是，默认0")
    private Byte deleteState;
    @Schema(description ="创建时间，自动记录插入时间")
    private Date createTime;
    @Schema(description ="修改时间，自动更新")
    private Date updateTime;
}